package com.foreknow.demo7;

/**
 * 员工类
 */
public class Employee {
    private int id;         // 工号
    private String name;    // 姓名
    private double sal;     // 工资
    private int dept;       // 部门编号

    public Employee(int id, String name, double sal, int dept) {
        this.id = id;
        this.name = name;
        this.sal = sal;
        this.dept = dept;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public int getDept() {
        return dept;
    }

    public void setDept(int dept) {
        this.dept = dept;
    }
}
